#!/bin/bash
echo Enter username@host of Your box
read answer
scp ../box-type-1/etc/persistent/* $answer:/etc/persistent/
echo Enter password again:
ssh  $answer 'chmod +x /etc/persistent/save && chmod +x /etc/persistent/rc.poststart && chmod +x /etc/persistent/rc.poststart && /etc/persistent/save && reboot'
echo Device rebooted right now
